package br.ufpe.cin.imlm2.jbeat.soot.common.filters;

import soot.Scene;
import soot.SootClass;

/**
 * Retains exception classes (<code>SootClass</code> objects) which are not part
 * of Application classes set. Usually this set consists of the Java standard
 * libraries but may be tweaked depending on the parameters given to Soot.
 * 
 * @author Irineu
 * 
 */
public class JavaLanguageExceptionFilter extends ThrowableFilter {

	@Override
	public boolean retains(SootClass t) {
		return super.retains(t)
				&& !Scene.v().getApplicationClasses().contains(t);
	}

}
